package com.qjl.shopping.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * @Author liguanghui
 * @Date 2023/5/3
 */
@Data
@TableName("star")
public class Star {
    @TableId(value = "star_id", type = IdType.AUTO)
    private int id;
    @TableField("star_user_id")
    private int userId;
    @TableField("star_item_id")
    private int itemId;

    @TableField(exist = false)
    private User user;
    @TableField(exist = false)
    private Item item;
}
